#ifndef TRANSMISSIONPAGE_H
#define TRANSMISSIONPAGE_H

#include <QWidget>
#include"agreement.h"

namespace Ui {
class TransmissionPage;
}

class TransmissionPage : public QWidget
{
    Q_OBJECT

public:
    explicit TransmissionPage(int id,std::shared_ptr<CloudDrive::UploadControl> contral,QWidget *parent = nullptr);
    ~TransmissionPage();

    void setFileName(std::string filename);

private slots:
    void on_pauseButton_clicked();


    //接收信号的槽函数
    void setProgressBar(int,int);

    void on_continueButton_clicked();

    void on_cancelButton_clicked();

private:
    Ui::TransmissionPage *ui;
    std::shared_ptr<CloudDrive::UploadControl> m_contral;

    int windowId;

signals:
    void funishSignal(int,std::string);
};

#endif // TRANSMISSIONPAGE_H
